package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowIssueNoticeQueryVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowIssueNoticeUpdateStatusVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowIssueNoticeVo;
import com.iwhalecloud.citybrain.flow.platform.manager.common.ResponseResult;

/**
 * @author lilh
 * @date 2019-04-25 14:30
 */
public interface FlowIssueNoticeRepository {

    /**
     * 新增
     *
     * @param entity 记录
     * @return 数量
     */
    int insertIssueNotice(FlowIssueNoticeVo entity);

    /**
     * 列表
     *
     * @param flowIssueNoticeQueryVo 查询
     * @return 结果
     */
    ResponseResult listIssueNotice(FlowIssueNoticeQueryVo flowIssueNoticeQueryVo);

    /**
     * 更新已读状态
     *
     * @param flowIssueNoticeUpdateStatusVo 参数
     * @return 更新的条数
     */
    int updateReadStatus(FlowIssueNoticeUpdateStatusVo flowIssueNoticeUpdateStatusVo);


    /**
     * 详情
     *
     * @param id id
     * @return 记录
     */
    FlowIssueNoticeVo detail(String id);

    /**
     * 统计
     *
     * @return 数量
     */
    int countIssueNotice();
}
